package com.mybatis.mybatis.bean;
//lombok插件，简化代码
//实体类和数据库表之间的对应

public class Customer {
    //属性名称最好和数据库字段保持一致
    //id  username jobs phone
    int id;
    String userName; //驼峰，配置后可自动匹配大小写，或者版本自己有
    String jobs;
    String phone;
    //必须具备无参构造方法  getter setter


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getJobs() {
        return jobs;
    }

    public void setJobs(String jobs) {
        this.jobs = jobs;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public String toString() {
        return "Customer{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", jobs='" + jobs + '\'' +
                ", phone='" + phone + '\'' +
                '}';
    }

    public Customer() {

    }

//    Integer[] ids= new Integer[]{1,3,4,5};
}
